import request from '/@/utils/request'
// 查询萤石云设备列表
export function listYs7Cameras(query:object) {
  return request({
    url: '/api/v1/system/ys7Cameras/list',
    method: 'get',
    params: query
  })
}
// 查询萤石云设备详细
export function getYs7Cameras(id:number) {
  return request({
    url: '/api/v1/system/ys7Cameras/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 激光开关 
export function jiguang_open(data:any) {
  return request({
    url: '/api/v1/system/ys7Cameras/jiguang_open',
    method: 'post',
    data
  })
}
// 新增萤石云设备
export function addYs7Cameras(data:object) {
  return request({
    url: '/api/v1/system/ys7Cameras/add',
    method: 'post',
    data: data
  })
}
// 修改萤石云设备
export function updateYs7Cameras(data:object) {
  return request({
    url: '/api/v1/system/ys7Cameras/edit',
    method: 'put',
    data: data
  })
}
// 删除萤石云设备
export function delYs7Cameras(ids:number[]) {
  return request({
    url: '/api/v1/system/ys7Cameras/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
// 删除萤石云设备
export function edit_batch(data:any) {
  return request({
    url: '/api/v1/system/ys7Cameras/edit_batch',
    method: 'put',
    data
  })
}
// 预置点管理列表
export function listBusPresettingBit(params:any) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/list',
    method: 'get',
    params
  })
}
// 预置点管理列表修改
export function BusPresettingBitEdit(data:any) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/edit',
    method: 'put',
    data
  })
}
// 预置点管理添加
export function addBusPresettingBit(data:any) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/add',
    method: 'post',
    data
  })
}
// 预置点管理添加
export function delBusPresettingBit(params:any) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/delete',
    method: 'delete',
    params
  })
}
// 调用预置点
export function busPresettingBitGet(data:any) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/move',
    method: 'post',
    data
  })
}
// 手动报警抓拍
export function capture_alarm(data:any) {
  return request({
    url: '/api/v1/system/ys7Cameras/capture_alarm',
    method: 'post',
    data
  })
}
// 手动抓拍
export function captureCamera(data:any) {
  return request({
    url: '/api/v1/system/ys7Cameras/capture',
    method: 'post',
    data
  })
}